package com.shunli.cterminal.model.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import static com.examples.core.tool.utils.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * @ClassName: MyOrderInfoVO
 * @Description: TODO
 * @Author: DAIYALU
 * @Date: 2024/11/11
 * @Version: 1.0
 */
@Data
public class MyOrderInfoVO implements Serializable {

    private static final long serialVersionUID = 7159612646405126564L;

    @Schema(description = "ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Schema(description = "红包金额")
    private BigDecimal abductBao;

    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime addTime;

    @Schema(description = "下单时间")
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime createTime;

    @Schema(description = "发货状态 1 已发 0 未发")
    private Integer delivery;

    @Schema(description = "加密订单号")
    private String encryptionOrder;

    @Schema(description = "发货方式 1-自动发货 2-微信发货 3-获客助手 01-获客助手")
    private String fhType;

    @Schema(description = "商品名称")
    private String goodsName;

    @Schema(description = "商品编码")
    private String goodsType;

    @Schema(description = "是否使用红包 0-未使用 1-已使用")
    private Integer isUseRedbag;

    @Schema(description = "结果页链接")
    private String link;

    @Schema(description = "订单号")
    private String orderId;

    @Schema(description = "是否支付 0-未支付 1-已支付")
    private Integer state;

    private String tgPar;

    private String channel;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long templateId;

}
